package yf.mall.vo.up;


import lombok.Data;

import java.util.Date;

import com.alibaba.excel.annotation.*;

import java.io.Serializable;



import yf.mall.entity.MallConfigEntity;
import yf.mall.vo.MallConfigVo;

                
/**
 * 商城配置实体
 * 表名 mall_config
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Sat Nov 27 11:15:02 CST 2021
 */
@Data
public class MallConfigUp implements Serializable {
    @ExcelIgnore
    private static final long serialVersionUID = 1L;

                        //主键
            @ExcelProperty("主键")
            private Long id;
        
                        //开始时间
            @ExcelProperty("开始时间")
            private Date starttime;
        
                        //结束时间
            @ExcelProperty("结束时间")
            private Date endtime;
        
                        //备用
            @ExcelProperty("备用")
            private String other;
        
    
    public MallConfigUp() {

    }

    public MallConfigVo toVo() {

        MallConfigEntity entity = new MallConfigEntity();
            MallConfigVo vo = new MallConfigVo(entity);
                                    entity.setId(id);
            
                                    entity.setStartTime(starttime);
            
                                    entity.setEndTime(endtime);
            
                                    entity.setOther(other);
            
        
        return  vo;
    }



}
